package com.wulian.common.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 *@Description:()
 * @author  caifulin
 * @date  2020/5/21 10:28
 * @version 1.0
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("scada_point_item_dic")
@ApiModel("指标字典表")
public class ScadaPointItemDic extends Model<ScadaPointItemDic> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;

    /**
     * 指标项编码
     */
    @ApiModelProperty("指标项编码")
    private String codeNumber;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String code;

    @ApiModelProperty("开关量0值描述")
    private String description0;

    @ApiModelProperty("开关量1值描述")
    private String description1;

    @ApiModelProperty("指标类型id")
    private Integer pointType;

    @ApiModelProperty("指标项数据类型，0=开关量，1=模拟量")
    private boolean dataType;

    @ApiModelProperty("控制类型，0=只读指标，1=控制指标")
    private boolean controlType;

    @ApiModelProperty("系统单位")
    private String unit;

    @ApiModelProperty("图标路径")
    private String imgUrl;

    @ApiModelProperty("移动app模块")
    private boolean inMobileApp;

    @ApiModelProperty("指标顺序，不同业务类型分段排序")
    private Integer dicOrder;

    @ApiModelProperty("开关量0值颜色")
    private String color0;

    @ApiModelProperty("开关量1值颜色")
    private String color1;

    @ApiModelProperty("指标类型")
    private Integer pointTypeId;

    @ApiModelProperty("移动指标名称")
    private String keyName;

    public ScadaPointItemDic() {
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }
}